//
//  HMDiscoverController.swift
//  weibo
//
//  Created by 杨念川 on 16/8/29.
//  Copyright © 2016年 杨念川. All rights reserved.
//

import UIKit

class HMDiscoverController: HMVistorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        if userLogin == false {
            visitorView.visorViewSetVlaue(imageName: "visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            return
        }

        setupUI()
    }
    //初始化UI
    func setupUI() {
        //创建搜索按钮
        let searchView = HMDiscoverSearchView.searchView()
        //设置frame
        searchView.frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 30)
        //添加到navgitionBar上
        navigationItem.titleView = searchView
        
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}
